import IRtc from '@/utils/irtc';

let { ConferenceClient } = IRtc.Conference;
let turnserverUrl = localStorage.getItem('turnserverUrl');
let turnserverCredential = localStorage.getItem('turnserverCredential');
let turnserverUsername = localStorage.getItem('turnserverUsername');
let ccOptions = {
	rtcConfiguration: {
		iceServers: [
			{
				urls: [turnserverUrl],
				credential: turnserverCredential,
				username: turnserverUsername
			}
		]
	}
};

var irtcClient = new ConferenceClient(ccOptions);

export default IRtc;
